package com.ruifu.proj.vo.ptcondtask;

import com.ruifu.proj.vo.ptmain.PmPtMainIOVO;
import lombok.Data;

/**
 * @author nyr
 * @create 2019/8/13
 */
@Data
public class PmPtCondTaskVO {
    private Long pcId;  //启停条件ID
    private Long pcPId; //前序任务ID
    private String pcPStatus; //前序任务状态 S 启动、F完成
    private String pcPStatusStr; //前序任务状态解释

    private PmPtMainIOVO pmPtMain;

    public String getPcPStatusStr() {
        switch (pcPStatus) {
            case "S":
                pcPStatusStr = "启动";
                break;
            case "F":
                pcPStatusStr = "完成";
                break;
            default:
                pcPStatusStr = "";
        }
        return pcPStatusStr;
    }
}
